
package TXPathFinder;

import java.awt.Color;
import java.io.FileNotFoundException;
import java.io.IOException;
import javax.swing.UIManager;
import javax.swing.UIManager.*;


/**
*       \class	Main
*	\brief	Lancement du viewer 3D et initialisation du data modèle
**/
public class Main {

    /**
    *	\brief	Constructeur
    *   \param args[] Argument du main
    **/
    public static void main(String[] args) throws FileNotFoundException, IOException {


        try {
            UIManager.put("nimbusBase", new Color(255,250,130));
            UIManager.put("nimbusBlueGrey", new Color(175,159,255));
            UIManager.put("control", new Color(237,222,255));

            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (Exception e) {
            // If Nimbus is not available, you can set the GUI to another look and feel.
        }

        Viewer viewer = new Viewer();
        DataModel.getInstance().setViewer(viewer);
        viewer.setVisible(true);
    }

}
